package edu.zut.hb.software.train.StaffManager.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import edu.zut.hb.software.base.service.impl.GenericManagerImpl;
import edu.zut.hb.software.train.Staff.dao.StaffDao;
import edu.zut.hb.software.train.Staff.domain.Staff;
import edu.zut.hb.software.train.StaffManager.service.StaffManager;




@Service("staffManager")
public class StaffManagerImpl extends GenericManagerImpl<Staff, Long> implements StaffManager {

	
	StaffDao staffDao;
	
	@Autowired
	public void setStaffDao(StaffDao staffDao) {
		this.staffDao = staffDao;
		this.dao = this.staffDao;
	}

	@Override
	public List<Staff> getAll() {
		List<Staff> all = this.staffDao.findAll();
		if (logger.isInfoEnabled()) {
			logger.info("getAll() - List<Staff> all={}", all); //$NON-NLS-1$
		}
		return all;
	}
 
}